package com.info33.platform.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.info33.platform.system.entity.SysDeptPost;
import com.info33.platform.system.vo.SysDeptPostVO;
import com.info33.platform.system.vo.SysUserVO;

/**
 * @author admin
 */
@Repository
public interface SysDeptPostDao extends BaseMapper<SysDeptPost> {

	/**
	 * 新增部门岗位
	 * @param sysDeptPost
	 * @return
	 */
	int insertDeptPost(@Param("sysDeptPost") SysDeptPost sysDeptPost);

    /**
     * 获取用户未拥有的部门与岗位
     *
     * @param uid         -
     * @param currentUser -
     * @return -
     */
    List<SysDeptPostVO> userDept(@Param("uid") Long uid, @Param("currentUser") SysUserVO currentUser);

}